package cn.vcjf.washcar.userInfo.service.impl;

import cn.vcjf.washcar.userInfo.entity.User;
import cn.vcjf.washcar.userInfo.mapper.UserMapper;
import cn.vcjf.washcar.userInfo.service.UserService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhengzihang
 * @since 2018-07-17
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	@Override
	public Page<User> selectPageList(Page<User> page, EntityWrapper<User> wrapper) {
		page.setRecords(baseMapper.selectPageList(page, wrapper));
		return page;
	}

	@Override
	public User findManagerUser() {
		return baseMapper.findManagerUser();
	}
}
